<script setup lang="ts">
import { http } from '@/utils/request'
// import un from '@uni-helper/uni-network'
const getData = async () => {
  console.log('hhhhh')

  // const banner = un.get('/home/banner').then((res) => {
  //   console.log(JSON.stringify(res))
  // })
  http.get('/home/banner')
  // const ban = await http.get('/home/banner')
  // console.log(JSON.stringify(ban) + '-----------')

  // const banner = http.get('/home/banner').then((res) => {
  //   console.log(JSON.stringify(res) + '--1------')
  // })
  // console.log(JSON.stringify(banner) + '--2----------')
}

//
</script>

<template>
  <view class="index">
    <uni-card
      title="基础卡片"
      sub-title="副标题"
      extra="额外信息"
      thumbnail="https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/unicloudlogo.png"
    >
      <text>这是一个带头像和双标题的基础卡片，此示例展示了一个完整的卡片。</text>
    </uni-card>

    <button @tap="getData()">测速</button>
  </view>
</template>

<style lang="scss">
//
</style>
